//
//  AES.h
//  iosdemo
//
//  Created by 严敏 on 2021/2/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface AESUtil : NSObject


+ (nullable NSData *)encryptAES128:(NSString *)key data:(NSData *)data iv:(NSString *)iv;

+ (nullable NSData *)decryptAES128:(NSString *)key data:(NSData *)data iv:(NSString *)iv;

+ (nullable NSData *)encryptDataAES128:(NSData *)key data:(NSData *)data iv:(NSData *)iv;

+ (nullable NSData *)decryptDataAES128:(NSData *)key data:(NSData *)data iv:(NSData *)iv;
@end

NS_ASSUME_NONNULL_END
